Win32: chain up screen finalize
authorPaolo Borelli <pborelli@gnome.org>
Fri, 19 Feb 2016 14:40:09 +0000 (15:40 +0100)
committerPaolo Borelli <pborelli@gnome.org>
Fri, 19 Feb 2016 14:49:29 +0000 (15:49 +0100)
Add the proper chain up (in preparation to actually freeing stuff) and
remove the empty dispose implementation

gdk/win32/gdkscreen-win32.c

index d9815d400d2cd1498ed00d8f01cade58910fc05b..d67b7271bbe57027e56fcd900419073dd843894e 100644 (file)
@@ -403,11 +403,8 @@ gdk_win32_screen_is_composited (GdkScreen *screen)
 static void
 gdk_win32_screen_finalize (GObject *object)
 {
-}
 
-static void
-gdk_win32_screen_dispose (GObject *object)
-{
+  G_OBJECT_CLASS (gdk_win32_screen_parent_class)->finalize (object);
 }
 
 static void
@@ -416,7 +413,6 @@ gdk_win32_screen_class_init (GdkWin32ScreenClass *klass)
   GObjectClass *object_class = G_OBJECT_CLASS (klass);
   GdkScreenClass *screen_class = GDK_SCREEN_CLASS (klass);
 
-  object_class->dispose = gdk_win32_screen_dispose;
   object_class->finalize = gdk_win32_screen_finalize;
 
   screen_class->get_display = gdk_win32_screen_get_display;